<!-- $Id: category_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
{include file="pageheader.htm"}
{insert_scripts files="../js/jquery.js"}
<!-- start add new category form -->
<div class="main-div">
  <form action="index_mgt.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
  <table width="100%" id="general-table">
      <tr>
        <td class="label">{$lang.parent_id}</td>
        <td>{$cat_info.inc_name}</td>
      </tr>
      <tr>
        <td class="label">{$lang.detail}</td>
        <td>
          {foreach from=$types item=type key=k}
          <input type="button" class="button" id="addbtn{$k}" value="{$lang.add}{$type}">
          {/foreach}
        </td>
      </tr>
      <tr>
        <td class="label"></td>
        <td id="detailcontainer"></td>
      </tr>
   </table>
      <div class="button-div">
        <input type="submit" value="{$lang.button_submit}" />
        <input type="reset" value="{$lang.button_reset}" />
      </div>
    <input type="hidden" name="act" value="{$form_act}" />
    <input type="hidden" name="level" value="{$detail_info.level}" />
    <input type="hidden" name="parent_id" value="{$detail_info.parent_id}" />
    <input type="hidden" name="inc_id" value="{$detail_info.inc_id}" />
  </form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--

$(':button').click(function(){
    var t = $(this).attr('id').replace('addbtn','');

    var s = eval('new_'+t+'()');
});

function new_text()
{
    var s = '';
    s+='<div>';
    s+='</div>';
    return s;
}

function new_textlink()
{
}

function new_pic()
{
}

function new_piclink()
{
}

//-->
</script>
{/literal}
{include file="pagefooter.htm"}